package com.acoreful.ackitcloud.remote;

import cn.hutool.core.util.StrUtil;
import com.acoreful.ackitcloud.api.UmsAdminApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class UmsAdminApiController implements UmsAdminApi {
    @PostMapping("admin/login")
    @Override
    public String login(String username, String password) {
        log.info("username:{},password:{}",username,password);
        return StrUtil.format("welcome {} login",username);
    }
}
